<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href=" __PUBLIC__/Admin/css/pintuer.css">
    <link rel="stylesheet" href=" __PUBLIC__/Admin/css/admin.css">
    <link rel="stylesheet" href="__PUBLIC__/editor/css/editormd.min.css" />
    <script src="__PUBLIC__/Admin/js/jquery.js"></script>
    <script src="__PUBLIC__/Admin/js/pintuer.js"></script>
    <js href="__PUBLIC__/js/jquery-2.0.2.js" />
    <js href="__PUBLIC__/ueditor/ueditor.config.js" />
    <js href="__PUBLIC__/ueditor/ueditor.all.min.js" />
    <script type="text/javascript">

        var editor;
        $(function () {
            //具体参数配置在  editor_config.js  中
            var options = {
                zIndex: 999,
                initialFrameWidth: 1200, //初化宽度
                initialFrameHeight: 400, //初化高度
                focus: false, //初始化时，是否让编辑器获得焦点true或false
                maximumWords: 99999, removeFormatAttributes: 'class,style,lang,width,height,align,hspace,valign'
                , //允许的最大字符数 'fullscreen',
                pasteplain:false, //是否默认为纯文本粘贴。false为不使用纯文本粘贴，true为使用纯文本粘贴
                autoHeightEnabled: true
                /*   autotypeset: {
                 mergeEmptyline: true,        //合并空行
                 removeClass: true,           //去掉冗余的class
                 removeEmptyline: false,      //去掉空行
                 textAlign: "left",           //段落的排版方式，可以是 left,right,center,justify 去掉这个属性表示不执行排版
                 imageBlockLine: 'center',    //图片的浮动方式，独占一行剧中,左右浮动，默认: center,left,right,none 去掉这个属性表示不执行排版
                 pasteFilter: false,          //根据规则过滤没事粘贴进来的内容
                 clearFontSize: false,        //去掉所有的内嵌字号，使用编辑器默认的字号
                 clearFontFamily: false,      //去掉所有的内嵌字体，使用编辑器默认的字体
                 removeEmptyNode: false,      //去掉空节点
                 //可以去掉的标签
                 removeTagNames: {"font": 1},
                 indent: false,               // 行首缩进
                 indentValue: '0em'           //行首缩进的大小
                 }*/,
                toolbars: [
                    ['fullscreen','|', 'undo', 'redo',
                        '|', 'bold', 'italic', 'underline', 'fontborder',
                        'removeformat', 'formatmatch', 'autotypeset', 'pasteplain', '|', 'forecolor',
                        'backcolor', 'insertorderedlist',
                        'insertunorderedlist', 'selectall', 'cleardoc', '|',
                        'lineheight', '|',
                        'customstyle', 'paragraph', 'fontfamily', 'fontsize',
                        'indent', '|', 'justifyleft', 'justifycenter',
                        'justifyright', 'justifyjustify', '|', 'insertimage'
                    ]
                ]
            };
            editor = new UE.ui.Editor(options);
            editor.render("content");  //  指定 textarea 的  id 为 goods_content

        });
    </script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>添加文章</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="">
                <div class="form-group">
                    <div class="field">
                        <p>
                      <textarea id="content" name="content" class="txt">{$art['content']}
                      </textarea>
                        </p>
                        <div class="tips"></div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label></label>
                    </div>
                    <div class="field">
                        <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                    </div>
                </div>
        </form>
    </div>
</div>

</body>
</html>

